<local:DocumentBase x:Class="WPFExcelReport.MainWindow"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                        xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
                     xmlns:YB="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
                     xmlns:AP="clr-namespace:WPFExcelReport;assembly=TAPKOPF" 
                      xmlns:GS="clr-namespace:WPFExcelReport;assembly=TGSDAT" 
                      xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF"  
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="4">
            <Button Content="{Binding Source={Localization:Translate Word=留位模式}}" Margin="10,0,0,0" Click="AllocationModeCommand"/>
        </WrapPanel>
        <Grid Name="MainTab" Grid.Row="1" Visibility="{Binding IsGD,ElementName=TV,Converter={StaticResource nbv}}"/>
        <me:TAB50RV Grid.Row="2" 
                    IsGD="{Binding IsGD,ElementName=TV}" 
                    x:Name="cAB"/>
    </Grid>
</local:DocumentBase>
    
